package cn.bellychang.ood.litejunit.v3.framework.runners;

import java.util.Arrays;
import java.util.List;

/**
 * @author ChangLiang
 * @date 2020/5/27
 */
public class InitializationError extends Exception {

    private final List<Throwable> fErrors;

    public InitializationError(List<Throwable> errors) {
        fErrors= errors;
    }

    public InitializationError(Throwable... errors) {
        this(Arrays.asList(errors));
    }

    public InitializationError(String string) {
        this(new Exception(string));
    }

    public List<Throwable> getCauses() {
        return fErrors;
    }
}
